MKLIB=$(HOME)/mkl/9.0/lib/32/
SPARSKIT=$(HOME)/workspace/vol3/ascotti/SPARSKIT2
ELLIKIT=$(HOME)/workspace/vol3/ascotti/ELLIKIT
FC=ifort -O3 -traceback

LINKER=ifort -traceback -O3
LIB= -lellikit -lskit -lmkl_solver -lmkl_lapack -lmkl_ia32 -lguide -lpthread
LIBDIR=-L$(MKLIB) -L$(SPARSKIT) -L$(ELLIKIT)/lib
INCDIR=-I./ -I$(ELLIKIT)/include

OBJ=nodeinfodef.o  metric.o test_time.o

.SUFFIXES: .f90 .o

.f90.mod:
	$(FC) $(INCDIR) -c $<
.mod.o:
	

.f90.o:
	$(FC) $(INCDIR) -c $<


test_time:$(OBJ)
	$(LINKER) $(LIBDIR) $(OBJ) $(LIB) -o test_time

clean:
	rm -f *~
	rm -f *.o
	rm -f *.mod
	rm -f test_time
